package com.nfit.shopadmin.controller;

import com.nfit.shopadmin.service.ProductSkuService;
import com.nfit.shopmodel.entity.product.ProductSku;
import com.nfit.shopmodel.vo.common.Result;
import com.nfit.shopmodel.vo.common.ResultCodeEnum;
import com.nfit.shopmodel.vo.h5.indexCarouselVo;
import okhttp3.internal.http.RetryAndFollowUpInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ClassName:ProductSkuController
 * Package:com.nfit.shopadmin.controller
 * Description
 *
 * @Author L
 * @Create 2024/12/18 15:23
 */
@RestController
@RequestMapping("/admin/productSku")
public class ProductSkuController {

    @Autowired
    private ProductSkuService productSkuService;


    @GetMapping("/getImage")
    public Result getImage(){
       List<indexCarouselVo> list = productSkuService.getImage();
       return Result.build(list, ResultCodeEnum.SUCCESS);
    }


}
